package com.ledi.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * </p>
 *
 * @author zhongxp
 * @since 2018-03-20
 */
@TableName("t_routes_role")
public class RoutesRole extends Model<RoutesRole> {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	/**
	 * 路由id
	 */
	private Integer routesid;
	/**
	 * 角色id
	 */
	private Integer roleid;

	public Long getId() {

		return id;
	}

	public void setId(Long id) {

		this.id = id;
	}

	public Integer getRoutesid() {

		return routesid;
	}

	public void setRoutesid(Integer routesid) {

		this.routesid = routesid;
	}

	public Integer getRoleid() {

		return roleid;
	}

	public void setRoleid(Integer roleid) {

		this.roleid = roleid;
	}

	@Override
	protected Serializable pkVal() {

		return id;
	}

	@Override
	public String toString() {

		return "RoutesRole{" +
				"id=" + id +
				", routesid=" + routesid +
				", roleid=" + roleid +
				"}";
	}
}
